package com.ph.irp.base.currency.dao;

import java.util.List;

import com.ph.irp.model.PBaseCurrency;

public interface PBaseCurrencyDAO {
	
	/*
	 * 查询币别记录定义
	 */
	public List<PBaseCurrency> getAllCurrencyList() throws Throwable;
	
	/*
	 * 按照币别ID查询
	 */
	public PBaseCurrency getCurrencyByID(Integer currencyId) throws Throwable;
	
	/*
	 * 按照币别代码查询
	 */
	public List<PBaseCurrency> getCurrencyByCode(String currencyCode)throws Throwable;
	
	/*
	 * 按照币别名称查询
	 */
	public List<PBaseCurrency> getCurrencyByName(String currencyName)throws Throwable;
	
	/*
	 * 按照币别名称和代码一起查询
	 */
	public List<PBaseCurrency> getCurrencyByCodeAndName(String currencyCode,String currencyName)throws Throwable;
	
	/*
	 * 添加币别记录定义
	 */
	public void addCurrency(PBaseCurrency currencyModel)throws Throwable;
	
	/*
	 * 修改选中记录
	 */
	public void updateCurrency(PBaseCurrency currencyModel)throws Throwable;
	
	/*
	 * 删除选中记录
	 */
	public int delectCurrency(Integer currencyId)throws Throwable;
	

}
